//
//  LoginModel.m
//  
//
//  Created by 王长飞 on 2018/10/18.
//  Copyright © 2018年 王长飞. All rights reserved.
//

#import "EFCodeLoginModel.h"

@implementation EFCodeLoginModel

- (instancetype)initWithDelegate:(id<BaseModelProtocol>)Delegate cache:(BOOL)cache
{
    if (self = [super initWithDelegate:Delegate cache:cache]) {
        self.parseModelClass = [CodeLoginResponse class];
    }
    return self ;
}
- (void)loginWith:(NSString *)mobile code:(NSString *)code
{
    NSMutableDictionary *parameters = [NSMutableDictionary dictionaryWithCapacity:5];
    [parameters setValue:mobile forKey:@"mobile"];
    [parameters setValue:code forKey:@"smsCode"];
    [parameters setValue:@"2" forKey:@"appLoginMode"];
    [parameters setValue:@"0" forKey:@"appRigisterMode"];
    [self postPath:@"xqn/app/applogin/loginAppByMobileSmscode" parameters:parameters];
}
@end
